<%= form_for([:admin, @upload], html: { multipart: true }) do |f| %>
  <div class="row drop">
    <div id="dropzone" class="fade well col-md-12">Drop files here</div>
    <div class="col-md-12">
      <span class="btn btn-success fileinput-button">
          <i class="glyphicon glyphicon-plus"></i>
          <%= f.label :uploaded_file, t('.upload_new_file') %>
          <%= f.hidden_field :imageable_id, value: imageable_id %>
          <%= f.hidden_field :imageable_type, value: imageable_type %>
          <%= f.file_field :uploaded_file, multiple: true, name: 'upload[uploaded_file]' %>
      </span>
    </div>
  </div>
  <br />
  <div class="actions">

    <%= f.submit %>
  </div>
<% end %>

<% # jquery upload template # %>
<script id="template-upload" type="text/x-tmpl"><div class="upload">{%=o.name%}<div class="progress"><div class="progress-bar bar" style="width: 0%"></div></div></div></script>